﻿//处方中台URL地址
var prescriptWeb = "https://open.yifengx.com/prescription/web"

var prescriptWebHtml = "https://open.yifengx.com/prescription/web/prescription.html"
// 默认是正式环境地址 ecp-boss-new
// var ecp_boss_server = "http://ecp-boss.yifengx.com"
var ecp_boss_server = "https://ecp.yifengx.com/ecp-boss-new"


var x_jot_sic_server = "https://jot.yifengx.com/jot-sic"

var jot_posting_server = "https://jot.yifengx.com/jot-posting"

//ecp请求的鉴权地址，默认是正式环境地址
//var ecp_boss_authUrl = "http://boss.yifengx.com"
var ecp_boss_authUrl = "http://portal.yfdyf.biz"   //新SSO使用

//物流的打印模板基础路径
var ecp_boss_logistics_tpl_url = "https://open.yifengx.com/ecp-boss"

var prescript_detail_url = "https://img.yifengx.com/thirdparty-apps/"
//新处方中台上下文地址
var prescriptHttpUrl = "https://sop.yifengx.com";

// 查看三方处方单地址
prescription_boss_web_url = "https://open.yifengx.com/boss/prescription-boss";

//是否开发环境 默认是

// TODO: 上生产需注释
var developEnvironment = false
if (developEnvironment) {
	prescriptWeb = "https://yf-test-oss.yifengx.com/webtest/prescription/web"
	prescriptWebHtml = "https://yf-test-oss.yifengx.com/test-env/prescription/web/prescription.html"
    ecp_boss_server = "http://192.168.7.71:31117"   // ecp-boss
    ecp_boss_server = "http://192.168.7.71:32057/ecp-boss-new"  // ecp-boss-new
    //ecp_boss_server = "http://localhost:8055/ecp-boss-new"

    //x_jot_sic_server = "http://jot-sic-dev.test.hnyf.cn/jot-sic"
    //x_jot_sic_server = "http://localhost:8033/jot-sic"
    //x_jot_sic_server = "http://256p02z672.wicp.vip:15334/jot-sic"
    //x_jot_sic_server = "http://192.168.7.71:31706/jot-sic"
    jot_posting_server = "http://localhost:8099/jot-posting"
    jot_posting_server = " http://192.168.7.71:31932/jot-posting"

    ecp_boss_authUrl = "http://boss-dev.yifengx.com"
    ecp_boss_authUrl = "http://192.168.7.71:31349/fire/fire-sso/home/login.html"   //新SSO使用
    ecp_boss_logistics_tpl_url="http://yf-example.oss-cn-shenzhen.aliyuncs.com/webtest/ecp-boss/dev-ecp-boss"
    prescript_detail_url = "https://yf-test-oss.yifengx.com/thirdparty-apps/"
    prescriptHttpUrl = "http://192.168.7.71:31285";
    prescription_boss_web_url = "https://yf-test-oss.yifengx.com/webtest/prescription-boss-web-dev";
} else {
    prescript_detail_url = "https://yf-test-oss.yifengx.com/thirdparty-apps/"
    prescriptWeb = "https://yf-test-oss.yifengx.com/test-env/prescription/web"
    prescriptWebHtml = "https://yf-test-oss.yifengx.com/test-env/prescription/web/prescription.html"
    //ecp_boss_server = "http://ecp-boss-te.yifengx.com"                // ecp-boss
    ecp_boss_server = "https://ecp-te.yifengx.com/ecp-boss-new/"      // ecp-boss-new
    x_jot_sic_server = "https://jot-te.yifengx.com/jot-sic"
    jot_posting_server = "https://jot-te.yifengx.com/jot-posting"
    //ecp_boss_authUrl = "https://boss-te.yifengx.com"
    ecp_boss_authUrl = "https://chief-te.yifengx.com/fire/fire-sso/home/login.html" //新SSO使用
    ecp_boss_logistics_tpl_url="https://yf-example.oss-cn-shenzhen.aliyuncs.com/webtest/ecp-boss/test-ecp-boss"
    prescriptHttpUrl = "https://sop-te.yifengx.com";
    prescription_boss_web_url = "https://yf-test-oss.yifengx.com/webtest/prescription-boss-web";
}
//***********************************************************************************************************************************************
/**写公共的css文件*/
document.writeln("<link href=\"../../res/plugins/bootstrap/css/bootstrap.min14ed.css?v=3.3.6\" rel=\"stylesheet\">");
document.writeln("<link href=\"../../res/plugins/bootstrap/css/font-awesome.min93e3.css?v=4.4.0\" rel=\"stylesheet\">");
document.writeln("<link href=\"../../res/plugins/bootstrap/css/plugins/bootstrap-table/bootstrap-table.min.css\" rel=\"stylesheet\">");
document.writeln("<link href=\"../../res/plugins/bootstrap/css/animate.min.css\" rel=\"stylesheet\">");
document.writeln("<link href=\"../../res/plugins/bootstrap/css/style.min862f.css?v=4.1.0\" rel=\"stylesheet\">");
document.writeln("<link rel=\"stylesheet\" href=\"../../res/plugins/layerui/layui/css/layui.css\"  media=\"all\">");
/**共用的js文件*/
document.writeln("<script src=\"../../res/plugins/bootstrap/js/jquery.min.js?v=2.1.4\"></script>");
/**openx 控件,远程地址：https://openx.yifengx.com/js/openx.js*/
document.writeln("<script src=\"../../res/js/openx.js\"></script>");
document.writeln("<script src=\"../../res/plugins/bootstrap/js/bootstrap.min.js?v=3.3.6\"></script>");
/**表格控件*/
document.writeln("<script src=\"../../res/plugins/bootstrap/js/plugins/bootstrap-table/bootstrap-table.min.js\"></script>");
document.writeln("<script src=\"../../res/plugins/bootstrap/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js\"></script>");
document.writeln("<script src=\"../../res/plugins/bootstrap/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js\"></script>");
document.writeln("<script src=\"../../res/plugins/bootstrap/js/plugins/bootstrap-table/table-export/bootstrap-table-export.js\"></script>");
document.writeln("<script src=\"../../res/plugins/bootstrap/js/plugins/bootstrap-table/table-export/tableExport.js\"></script>");

/**弹出层控件*/
document.writeln("<script src=\"../../res/plugins/layerui/layer/layer.js\"></script>");
/**模版控件*/
document.writeln("<script src=\"../../res/plugins/layerui/layer/laytpl.js\"></script>");

/**美化滚动条 参考：http://manos.malihu.gr/jquery-custom-content-scroller */
document.writeln("<script src=\"../../res/js/base62.js?v=1.22.0\"></script>");
document.writeln("<script src=\"../../res/js/utils.js?v=1.22.0\"></script>");
document.writeln("<script src=\"../../res/plugins/layerui/layui/layui.js\" charset=\"utf-8\"></script>");
/**写入公共的增删改成按钮*/
document.writeln(" ");
document.writeln("<script type=\"text/html\" id=\"toolbartpl\">");
document.writeln("<div id=\"TableToolbar\" class=\"bars pull-left\" > ");
document.writeln("         <button class=\"btn btn-warning\" onclick='$.openx.insert()' type=\"button\"><i class=\"glyphicon glyphicon-plus\"></i> 新增</button>");
document.writeln("         <button class=\"btn btn-primary\" onclick='$.openx.update()' type=\"button\"><i class=\"glyphicon glyphicon-pencil\"></i> 修改</button>");
document.writeln("         <button class=\"btn btn-danger\" onclick='$.openx.delete()' type=\"button\"><i class=\"glyphicon glyphicon-trash\"></i> 删除</button>");
document.writeln("</div>");
document.writeln("</script>");
//***********************************************************************************************************************************************


